package com.shd.edanpei.ui.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseViewHolder;
import com.shd.edanpei.R;
import com.shd.edanpei.base.BaseQuickImageAdapter;
import com.shd.edanpei.bean.MeNeedModel;

public class DemandAdapter extends BaseQuickImageAdapter<MeNeedModel> {


    public DemandAdapter(Context context) {
        super(context, R.layout.item_products);
    }

    @Override
    protected void convert(BaseViewHolder helper, MeNeedModel item) {
        helper.setText(R.id.tv_type, "已提交")
                .setText(R.id.tv_name, item.getNeedProduct())
                .setText(R.id.tv_time, item.getCreateTime())
                .addOnClickListener(R.id.content)
                .addOnClickListener(R.id.delete);
    }
}
